JMExecMethodInContext
Executes a nonstatic Java method in a given AWT context thread using the Java Runtime Interface (JRI).
OSStatus JMExecMethodInContext ( JMAWTContextRef context, jref objref, JRIMethodID methodID, UInt32 argCount, JRIValue args[]);
context
- The AWT context in whose thread you want the method to execute.
objref
- A pointer to the Java object that contains the method you want to call.
methodID
- The ID of the method.
argCount
- The number of arguments in the method.
args[]
- The argument list.
- function result
- A result code; see "JManager Result Codes".
DISCUSSION
Unless you have a particular reason to access the Java Runtime Interface, you should instead make calls to the Java Native Interface, which provides similar functionality.If you want to execute a static Java method (that is, one that is not local to an object) using the JRI, you must call the
JMExecStaticMethodInContext
function instead.You can find documentation on the Java Runtime Interface (JRI) at the Web page
http://developer.netscape.com/
SEE ALSO
TheJMExecJNIMethodInContext
function.The
JMExecJNIStaticMethodInContext
function.